var fieldtypeData = [		
	{
		fieldtype : "varchar",
		text : "varchar"
	}, {
		fieldtype : "date",
		text : "date"
	}, {
		fieldtype : "datetime",
		text : "datetime"
	}, {
		fieldtype : "numeric",
		text : "numeric"
	}, {
		fieldtype : "int",
		text : "int"
	}, { 
		fieldtype: "bigint", 
		text: 'bigint' 
	}, { 
		fieldtype: "binary", 
		text: 'binary'
	}, {
		fieldtype : "bit",
		text : "bit"
	}, {
		fieldtype : "blob",
		text : "blob"
	}, {
		fieldtype : "bool",
		text : "bool"
	}, {
		fieldtype : "boolean",
		text : "boolean"
	}, {
		fieldtype : "char",
		text : "char"
	}, {
		fieldtype : "decimal",
		text : "decimal"
	}, {
		fieldtype : "double",
		text : "double"
	}, {
		fieldtype : "enum",
		text : "enum"
	}, {
		fieldtype : "float",
		text : "float"
	}, {
		fieldtype : "longblob",
		text : "longblob"
	}, {
		fieldtype : "longtext",
		text : "longtext"
	} , {
		fieldtype : "mediumblob",
		text : "mediumblob"
	} , {
		fieldtype : "mediumint",
		text : "mediumint"
	} , {
		fieldtype : "mediumtext",
		text : "mediumtext"
	}  , {
		fieldtype : "real",
		text : "real"
	} , {
		fieldtype : "set",
		text : "set"
	} , {
		fieldtype : "smallint",
		text : "smallint"
	} , {
		fieldtype : "text",
		text : "text"
	} , {
		fieldtype : "time",
		text : "time"
	} , {
		fieldtype : "timestamp",
		text : "timestamp"
	} , {
		fieldtype : "tinyblob",
		text : "tinyblob"
	} , {
		fieldtype : "tinyint",
		text : "tinyint"
	} , {
		fieldtype : "tinytext",
		text : "tinytext"
	} , {
		fieldtype : "varbinary",
		text : "varbinary"
	} , {
		fieldtype : "year",
		text : "year"
	}
];
var ismustData = [{ ismust: 1, text: '是' }, { ismust: 0, text: '否'}];
var iskeyData = [{ iskey: 1, text: '是' }, { iskey: 0, text: '否'}];

// Column Renders For Liger DataGrid 
function f_renderSex(rowdata, index, value){
	if(value=='1'){
		return '先生';
	}else{
		return '女士';
	}
}
// advanced query
function advancedQuery(tablename){
	var url="/advancedQuery?tablename="+tablename;
	$.ligerDialog.open({ url: url, height: 500,width: 500,
		title:"高级查询"});
}
// function validate
function validateForm(){// 这里是使用了EasyValidator专用的验证	
	return $(".input_validation-failed").length === 0;
}


